import 'package:wanxiang_app/generated/json/base/json_field.dart';
import 'package:wanxiang_app/generated/json/agreement_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class AgreementEntity {
	late int code;
	late String msg;
	late AgreementData data;

	AgreementEntity();

	factory AgreementEntity.fromJson(Map<String, dynamic> json) => $AgreementEntityFromJson(json);

	Map<String, dynamic> toJson() => $AgreementEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class AgreementData {
	late int id;
	late String title;
	late String content;

	AgreementData();

	factory AgreementData.fromJson(Map<String, dynamic> json) => $AgreementDataFromJson(json);

	Map<String, dynamic> toJson() => $AgreementDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}